package sql.db;

public class Value {

	private String value;
	private String type;
	
	public Value(String value_, String type_) {
		super();
		setValue(value_);
		setType(type_);
	}
	
	
////////////////////////////////////////////////////////////
	public String getValue() {
		return value;
	}
	
	public int getIntValue() {
		if (getType().equals("int"))
			return new Integer(value).intValue();
		else
			return -9999;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
